package com.ai.aicontact.busi.entity;
 

import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonFormat;

/***************
 *author: autogen
 *version: 2016-08-11 23:18:00.211
 */
@Entity
@Table(name = "EXEC_INSTRUCTION")
public class ExecInstruction implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "EXEC_INSTRUCTION";

    /**${param.comment} */
	public static final String ALIAS_ACT_ID = "ACT_ID";
    /**${param.comment} */
	public static final String ALIAS_SYS_ID = "SYS_ID";
    /**${param.comment} */
	public static final String ALIAS_ACT_NAME = "ACT_NAME";
    /**${param.comment} */
	public static final String ALIAS_ACT_MAIN_ID = "ACT_MAIN_ID";
    /**${param.comment} */
	public static final String ALIAS_ACT_MAIN_NAME = "ACT_MAIN_NAME";
    /**${param.comment} */
	public static final String ALIAS_ACT_TITLE = "ACT_TITLE";
    /**${param.comment} */
	public static final String ALIAS_ACT_DISCRIPTION = "ACT_DISCRIPTION";
    /**${param.comment} */
	public static final String ALIAS_ACT_SEQUENCE = "ACT_SEQUENCE";
    /**${param.comment} */
	public static final String ALIAS_ACT_START_DATE = "ACT_START_DATE";
    /**${param.comment} */
	public static final String ALIAS_ACT_END_DATE = "ACT_END_DATE";
    /**${param.comment} */
	public static final String ALIAS_ACT_DRIVE_TYPE = "ACT_DRIVE_TYPE";
    /**${param.comment} */
	public static final String ALIAS_ACT_PERIOD = "ACT_PERIOD";
    /**${param.comment} */
	public static final String ALIAS_ACT_EXPIRED = "ACT_EXPIRED";
    /**${param.comment} */
	public static final String ALIAS_ACT_CUSTOMER_ID = "ACT_CUSTOMER_ID";
    /**${param.comment} */
	public static final String ALIAS_ACT_EVENT_ID = "ACT_EVENT_ID";
    /**${param.comment} */
	public static final String ALIAS_ACT_RELATEDPROD_ID = "ACT_RELATEDPROD_ID";
    /**${param.comment} */
	public static final String ALIAS_ACT_CHANNEL_TYPE = "ACT_CHANNEL_TYPE";
    /**${param.comment} */
	public static final String ALIAS_ACT_IN_TC = "ACT_IN_TC";
    /**${param.comment} */
	public static final String ALIAS_ACT_ALL_TC = "ACT_ALL_TC";
    /**${param.comment} */
	public static final String ALIAS_CRITICAL_POINT_ID = "CRITICAL_POINT_ID";
    /**${param.comment} */
	public static final String ALIAS_ACT_CHANNEL = "ACT_CHANNEL";
    /**${param.comment} */
	public static final String ALIAS_ACT_INTRACT_TYPE = "ACT_INTRACT_TYPE";
    /**${param.comment} */
	public static final String ALIAS_ACT_SEND_TIME = "ACT_SEND_TIME";
    /**${param.comment} */
	public static final String ALIAS_CONTACT_TIMES = "CONTACT_TIMES";
    /**${param.comment} */
	public static final String ALIAS_CONTACT_START_SEG = "CONTACT_START_SEG";
    /**${param.comment} */
	public static final String ALIAS_CONTACT_END_SEG = "CONTACT_END_SEG";
    /**${param.comment} */
	public static final String ALIAS_SEND_CONTENT = "SEND_CONTENT";
    /**${param.comment} */
	public static final String ALIAS_INTERACT_RULE_DESC = "INTERACT_RULE_DESC";
    /**${param.comment} */
	public static final String ALIAS_APPEND_CHANNEL_INFO = "APPEND_CHANNEL_INFO";
    /**${param.comment} */
	public static final String ALIAS_CREATOR = "CREATOR";
    /**${param.comment} */
	public static final String ALIAS_CREATOR_PHONE = "CREATOR_PHONE";
    /**${param.comment} */
	public static final String ALIAS_REGION = "REGION";
    /**${param.comment} */
	public static final String ALIAS_ACT_STATUS = "ACT_STATUS";
    /**${param.comment} */
	public static final String ALIAS_REMARK = "REMARK";
    /**${param.comment} */
	public static final String ALIAS_CREATE_DATE = "CREATE_DATE";
    /**${param.comment} */
	public static final String ALIAS_UPDATE_DATE = "UPDATE_DATE";
    /**${param.comment} */
	public static final String ALIAS_DONE_DATE = "DONE_DATE";
    /**${param.comment} */
	public static final String ALIAS_EXT_1 = "EXT_1";
    /**${param.comment} */
	public static final String ALIAS_EXT_2 = "EXT_2";
    /**${param.comment} */
	public static final String ALIAS_EXT_3 = "EXT_3";
    /**${param.comment} */
	public static final String ALIAS_EXT_4 = "EXT_4";
	
	

 	@Id 
	@Column(name = "ACT_ID", unique = true, nullable = false)
    public java.lang.String actId;
  
 	@Column(name = "SYS_ID")
    public java.lang.Long sysId;
  
 	@Column(name = "ACT_NAME")
    public java.lang.String actName;
  
 	@Column(name = "ACT_MAIN_ID")
    public java.lang.String actMainId;
  
 	@Column(name = "ACT_MAIN_NAME")
    public java.lang.String actMainName;
  
 	@Column(name = "ACT_TITLE")
    public java.lang.String actTitle;
  
 	@Column(name = "ACT_DISCRIPTION")
    public java.lang.String actDiscription;
  
 	@Column(name = "ACT_SEQUENCE")
    public java.lang.Integer actSequence;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "ACT_START_DATE")
 	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public java.util.Date actStartDate;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "ACT_END_DATE")
 	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public java.util.Date actEndDate;
  
 	@Column(name = "ACT_DRIVE_TYPE")
    public java.lang.Integer actDriveType;
  
 	@Column(name = "ACT_PERIOD")
    public java.lang.String actPeriod;
  
 	@Column(name = "ACT_EXPIRED")
    public java.lang.String actExpired;
  
 	@Column(name = "ACT_CUSTOMER_ID")
    public java.lang.String actCustomerId;
  
 	@Column(name = "ACT_EVENT_ID")
    public java.lang.String actEventId;
  
 	@Column(name = "ACT_RELATEDPROD_ID")
    public java.lang.String actRelatedprodId;
  
 	@Column(name = "ACT_CHANNEL_TYPE")
    public java.lang.String actChannelType;
  
 	@Column(name = "ACT_IN_TC")
    public java.lang.Long actInTc;
  
 	@Column(name = "ACT_ALL_TC")
    public java.lang.Long actAllTc;
  
 	@Column(name = "CRITICAL_POINT_ID")
    public java.lang.Long criticalPointId;
  
 	@Column(name = "ACT_CHANNEL")
    public java.lang.String actChannel;
  
 	@Column(name = "ACT_INTRACT_TYPE")
    public java.lang.Integer actIntractType;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "ACT_SEND_TIME")
 	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public java.util.Date actSendTime;
  
 	@Column(name = "CONTACT_TIMES")
    public java.lang.String contactTimes;
  
 	@Column(name = "CONTACT_START_SEG")
    public java.lang.String contactStartSeg;
  
 	@Column(name = "CONTACT_END_SEG")
    public java.lang.String contactEndSeg;
  
 	@Column(name = "SEND_CONTENT")
    public java.lang.String sendContent;
  
 	@Column(name = "INTERACT_RULE_DESC")
    public java.lang.String interactRuleDesc;
  
 	@Column(name = "APPEND_CHANNEL_INFO")
    public java.lang.String appendChannelInfo;
  
 	@Column(name = "CREATOR")
    public java.lang.String creator;
  
 	@Column(name = "CREATOR_PHONE")
    public java.lang.String creatorPhone;
  
 	@Column(name = "REGION")
    public java.lang.String region;
  
 	@Column(name = "ACT_STATUS")
    public java.lang.Integer actStatus;
  
 	@Column(name = "REMARK")
    public java.lang.String remark;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_DATE")
 	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public java.util.Date createDate;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "UPDATE_DATE")
 	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public java.util.Date updateDate;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "DONE_DATE")
 	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public java.util.Date doneDate;
  
 	@Column(name = "EXT_1")
    public java.lang.Long ext1;
  
 	@Column(name = "EXT_2")
    public java.lang.Long ext2;
  
 	@Column(name = "EXT_3")
    public java.lang.String ext3;
  
 	@Column(name = "EXT_4")
    public java.lang.String ext4;
  





	public java.lang.String getActId() {
		return this.actId;
	}
	
	public void setActId(java.lang.String value) {
		this.actId = value;
	}

	public java.lang.Long getSysId() {
		return this.sysId;
	}
	
	public void setSysId(java.lang.Long value) {
		this.sysId = value;
	}

	public java.lang.String getActName() {
		return this.actName;
	}
	
	public void setActName(java.lang.String value) {
		this.actName = value;
	}

	public java.lang.String getActMainId() {
		return this.actMainId;
	}
	
	public void setActMainId(java.lang.String value) {
		this.actMainId = value;
	}

	public java.lang.String getActMainName() {
		return this.actMainName;
	}
	
	public void setActMainName(java.lang.String value) {
		this.actMainName = value;
	}

	public java.lang.String getActTitle() {
		return this.actTitle;
	}
	
	public void setActTitle(java.lang.String value) {
		this.actTitle = value;
	}

	public java.lang.String getActDiscription() {
		return this.actDiscription;
	}
	
	public void setActDiscription(java.lang.String value) {
		this.actDiscription = value;
	}

	public java.lang.Integer getActSequence() {
		return this.actSequence;
	}
	
	public void setActSequence(java.lang.Integer value) {
		this.actSequence = value;
	}

	public java.util.Date getActStartDate() {
		return this.actStartDate;
	}
	
	public void setActStartDate(java.util.Date value) {
		this.actStartDate = value;
	}

	public java.util.Date getActEndDate() {
		return this.actEndDate;
	}
	
	public void setActEndDate(java.util.Date value) {
		this.actEndDate = value;
	}

	public java.lang.Integer getActDriveType() {
		return this.actDriveType;
	}
	
	public void setActDriveType(java.lang.Integer value) {
		this.actDriveType = value;
	}

	public java.lang.String getActPeriod() {
		return this.actPeriod;
	}
	
	public void setActPeriod(java.lang.String value) {
		this.actPeriod = value;
	}

	public java.lang.String getActExpired() {
		return this.actExpired;
	}
	
	public void setActExpired(java.lang.String value) {
		this.actExpired = value;
	}

	public java.lang.String getActCustomerId() {
		return this.actCustomerId;
	}
	
	public void setActCustomerId(java.lang.String value) {
		this.actCustomerId = value;
	}

	public java.lang.String getActEventId() {
		return this.actEventId;
	}
	
	public void setActEventId(java.lang.String value) {
		this.actEventId = value;
	}

	public java.lang.String getActRelatedprodId() {
		return this.actRelatedprodId;
	}
	
	public void setActRelatedprodId(java.lang.String value) {
		this.actRelatedprodId = value;
	}

	public java.lang.String getActChannelType() {
		return this.actChannelType;
	}
	
	public void setActChannelType(java.lang.String value) {
		this.actChannelType = value;
	}

	public java.lang.Long getActInTc() {
		return this.actInTc;
	}
	
	public void setActInTc(java.lang.Long value) {
		this.actInTc = value;
	}

	public java.lang.Long getActAllTc() {
		return this.actAllTc;
	}
	
	public void setActAllTc(java.lang.Long value) {
		this.actAllTc = value;
	}

	public java.lang.Long getCriticalPointId() {
		return this.criticalPointId;
	}
	
	public void setCriticalPointId(java.lang.Long value) {
		this.criticalPointId = value;
	}

	public java.lang.String getActChannel() {
		return this.actChannel;
	}
	
	public void setActChannel(java.lang.String value) {
		this.actChannel = value;
	}

	public java.lang.Integer getActIntractType() {
		return this.actIntractType;
	}
	
	public void setActIntractType(java.lang.Integer value) {
		this.actIntractType = value;
	}

	public java.util.Date getActSendTime() {
		return this.actSendTime;
	}
	
	public void setActSendTime(java.util.Date value) {
		this.actSendTime = value;
	}

	public java.lang.String getContactTimes() {
		return this.contactTimes;
	}
	
	public void setContactTimes(java.lang.String value) {
		this.contactTimes = value;
	}

	public java.lang.String getContactStartSeg() {
		return this.contactStartSeg;
	}
	
	public void setContactStartSeg(java.lang.String value) {
		this.contactStartSeg = value;
	}

	public java.lang.String getContactEndSeg() {
		return this.contactEndSeg;
	}
	
	public void setContactEndSeg(java.lang.String value) {
		this.contactEndSeg = value;
	}

	public java.lang.String getSendContent() {
		return this.sendContent;
	}
	
	public void setSendContent(java.lang.String value) {
		this.sendContent = value;
	}

	public java.lang.String getInteractRuleDesc() {
		return this.interactRuleDesc;
	}
	
	public void setInteractRuleDesc(java.lang.String value) {
		this.interactRuleDesc = value;
	}

	public java.lang.String getAppendChannelInfo() {
		return this.appendChannelInfo;
	}
	
	public void setAppendChannelInfo(java.lang.String value) {
		this.appendChannelInfo = value;
	}

	public java.lang.String getCreator() {
		return this.creator;
	}
	
	public void setCreator(java.lang.String value) {
		this.creator = value;
	}

	public java.lang.String getCreatorPhone() {
		return this.creatorPhone;
	}
	
	public void setCreatorPhone(java.lang.String value) {
		this.creatorPhone = value;
	}

	public java.lang.String getRegion() {
		return this.region;
	}
	
	public void setRegion(java.lang.String value) {
		this.region = value;
	}

	public java.lang.Integer getActStatus() {
		return this.actStatus;
	}
	
	public void setActStatus(java.lang.Integer value) {
		this.actStatus = value;
	}

	public java.lang.String getRemark() {
		return this.remark;
	}
	
	public void setRemark(java.lang.String value) {
		this.remark = value;
	}

	public java.util.Date getCreateDate() {
		return this.createDate;
	}
	
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}

	public java.util.Date getUpdateDate() {
		return this.updateDate;
	}
	
	public void setUpdateDate(java.util.Date value) {
		this.updateDate = value;
	}

	public java.util.Date getDoneDate() {
		return this.doneDate;
	}
	
	public void setDoneDate(java.util.Date value) {
		this.doneDate = value;
	}

	public java.lang.Long getExt1() {
		return this.ext1;
	}
	
	public void setExt1(java.lang.Long value) {
		this.ext1 = value;
	}

	public java.lang.Long getExt2() {
		return this.ext2;
	}
	
	public void setExt2(java.lang.Long value) {
		this.ext2 = value;
	}

	public java.lang.String getExt3() {
		return this.ext3;
	}
	
	public void setExt3(java.lang.String value) {
		this.ext3 = value;
	}

	public java.lang.String getExt4() {
		return this.ext4;
	}
	
	public void setExt4(java.lang.String value) {
		this.ext4 = value;
	}


	
	public ExecInstruction() {
	}
	
	public ExecInstruction(boolean qryflag) {
	    if(qryflag){
	    		this.actId = null;
				this.sysId = null;
				this.actName = null;
				this.actMainId = null;
				this.actMainName = null;
				this.actTitle = null;
				this.actDiscription = null;
				this.actSequence = null;
				this.actStartDate = null;
				this.actEndDate = null;
				this.actDriveType = null;
				this.actPeriod = null;
				this.actExpired = null;
				this.actCustomerId = null;
				this.actEventId = null;
				this.actRelatedprodId = null;
				this.actChannelType = null;
				this.actInTc = null;
				this.actAllTc = null;
				this.criticalPointId = null;
				this.actChannel = null;
				this.actIntractType = null;
				this.actSendTime = null;
				this.contactTimes = null;
				this.contactStartSeg = null;
				this.contactEndSeg = null;
				this.sendContent = null;
				this.interactRuleDesc = null;
				this.appendChannelInfo = null;
				this.creator = null;
				this.creatorPhone = null;
				this.region = null;
				this.actStatus = null;
				this.remark = null;
				this.createDate = null;
				this.updateDate = null;
				this.doneDate = null;
				this.ext1 = null;
				this.ext2 = null;
				this.ext3 = null;
				this.ext4 = null;
			    }
	}


	public ExecInstruction(
	    java.lang.String inActId,
	    java.lang.Long inSysId,
	    java.lang.String inActName,
	    java.lang.String inActMainId,
	    java.lang.String inActMainName,
	    java.lang.String inActTitle,
	    java.lang.String inActDiscription,
	    java.lang.Integer inActSequence,
	    java.util.Date inActStartDate,
	    java.util.Date inActEndDate,
	    java.lang.Integer inActDriveType,
	    java.lang.String inActPeriod,
	    java.lang.String inActExpired,
	    java.lang.String inActCustomerId,
	    java.lang.String inActEventId,
	    java.lang.String inActRelatedprodId,
	    java.lang.String inActChannelType,
	    java.lang.Long inActInTc,
	    java.lang.Long inActAllTc,
	    java.lang.Long inCriticalPointId,
	    java.lang.String inActChannel,
	    java.lang.Integer inActIntractType,
	    java.util.Date inActSendTime,
	    java.lang.String inContactTimes,
	    java.lang.String inContactStartSeg,
	    java.lang.String inContactEndSeg,
	    java.lang.String inSendContent,
	    java.lang.String inInteractRuleDesc,
	    java.lang.String inAppendChannelInfo,
	    java.lang.String inCreator,
	    java.lang.String inCreatorPhone,
	    java.lang.String inRegion,
	    java.lang.Integer inActStatus,
	    java.lang.String inRemark,
	    java.util.Date inCreateDate,
	    java.util.Date inUpdateDate,
	    java.util.Date inDoneDate,
	    java.lang.Long inExt1,
	    java.lang.Long inExt2,
	    java.lang.String inExt3,
		java.lang.String inExt4
	 ) {
		super();
				this.actId = inActId;
				this.sysId = inSysId;
				this.actName = inActName;
				this.actMainId = inActMainId;
				this.actMainName = inActMainName;
				this.actTitle = inActTitle;
				this.actDiscription = inActDiscription;
				this.actSequence = inActSequence;
				this.actStartDate = inActStartDate;
				this.actEndDate = inActEndDate;
				this.actDriveType = inActDriveType;
				this.actPeriod = inActPeriod;
				this.actExpired = inActExpired;
				this.actCustomerId = inActCustomerId;
				this.actEventId = inActEventId;
				this.actRelatedprodId = inActRelatedprodId;
				this.actChannelType = inActChannelType;
				this.actInTc = inActInTc;
				this.actAllTc = inActAllTc;
				this.criticalPointId = inCriticalPointId;
				this.actChannel = inActChannel;
				this.actIntractType = inActIntractType;
				this.actSendTime = inActSendTime;
				this.contactTimes = inContactTimes;
				this.contactStartSeg = inContactStartSeg;
				this.contactEndSeg = inContactEndSeg;
				this.sendContent = inSendContent;
				this.interactRuleDesc = inInteractRuleDesc;
				this.appendChannelInfo = inAppendChannelInfo;
				this.creator = inCreator;
				this.creatorPhone = inCreatorPhone;
				this.region = inRegion;
				this.actStatus = inActStatus;
				this.remark = inRemark;
				this.createDate = inCreateDate;
				this.updateDate = inUpdateDate;
				this.doneDate = inDoneDate;
				this.ext1 = inExt1;
				this.ext2 = inExt2;
				this.ext3 = inExt3;
				this.ext4 = inExt4;
			}

 


}

